package com.wzk.travelspringboot.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/4 22:18
 */
@Data
public class LoginDTO {

    @NotBlank(message = "用户名不能为空！")
    private String username;

    @NotBlank(message = "密码不能为空！")
    private String password;

    @NotBlank(message = "验证码不能为空")
    @Length(max = 5,min = 5,message = "验证码长度不合法！")
    private String code;

}
